import { request } from '@/utils/service'
import type * as Bike from '@/api/bike/types/bike'
/** 查询长租车 */
export function queryBike(data: Bike.queryBikeRequestData) {
  return request<Bike.queryBikeResponse>({
    url: '/queryBike',
    method: 'post',
    data
  })
}
/** 查询长租车故障记录 */
export function queryBikeCheck(data: Bike.queryBikeCheckRequestData) {
  return request<Bike.queryBikeCheckResponse>({
    url: '/queryBikeCheck',
    method: 'post',
    data
  })
}
/** 查询车辆涉及到的骑行日期 */
export function queryBikeTrackDate(data: Bike.queryBikeTrackDateRequestData) {
  return request<Bike.queryBikeTrackDateResponse>({
    url: '/queryBikeTrackDate',
    method: 'post',
    data
  })
}
/** 查询车辆轨迹 */
export function queryBikeTrack(data: Bike.queryBikeTrackRequestData) {
  return request<Bike.queryBikeTrackResponse>({
    url: '/queryBikeTrack',
    method: 'post',
    data
  })
}
/** 查询车辆租赁记录 */
export function queryBikeRentRecord(data: Bike.queryBikeRentRecordRequestData) {
  return request<Bike.queryBikeRentRecordResponse>({
    url: '/queryBikeRent',
    method: 'post',
    data
  })
}
/** 查询短租车 */
export function queryShortBike(data: Bike.queryShortBikeRequestData) {
  return request<Bike.queryShortBikeResponse>({
    url: '/queryBikeShortTerm',
    method: 'post',
    data
  })
}
/** 查询短租轨迹 */
export function queryBikeShortTermTrack(data: Bike.queryBikeShortTermTrackRequestData) {
  return request<Bike.queryBikeShortTermTrackResponse>({
    url: '/queryBikeShortTermTrack',
    method: 'post',
    data
  })
}
/** 查询短租位置 */
export function queryShortTermBikeLocation(data: Bike.queryShortTermBikeLocationRequestData) {
  return request<Bike.queryShortTermBikeLocationResponse>({
    url: '/queryShortTermBikeLocation',
    method: 'post',
    data
  })
}
/** 短租车常规还车 */
export function assistReturnBike(data: Bike.assistReturnBikeRequestData) {
  return request<Bike.assistReturnBikeResponse>({
    url: '/assistReturnBike',
    method: 'post',
    data
  })
}
/** 短租车强制还车 */
export function forceReturnBike(data: Bike.forceReturnBikeRequestData) {
  return request<Bike.forceReturnBikeResponse>({
    url: '/forceReturnBike',
    method: 'post',
    data
  })
}
/** 短租车历史行程 */
export function queryTimeBikeHistoryLocus(data: Bike.queryTimeBikeHistoryLocusRequestData) {
  return request<Bike.queryTimeBikeHistoryLocusTabelResponse>({
    url: '/queryTimeBikeHistoryLocus',
    method: 'post',
    data
  })
}
/** 短租关锁 */
export function lockShortTermBike(data: Bike.lockShortTermBikeRequestData) {
  return request<Bike.lockShortTermBikeResponse>({
    url: '/lockShortTermBike',
    method: 'post',
    data
  })
}
/** 短租解除维修 */
export function unMaintenanceShortTermBike(data: Bike.unMaintenanceShortTermBikeRequestData) {
  return request<Bike.unMaintenanceShortTermBikeResponse>({
    url: '/unMaintenanceShortTermBike',
    method: 'post',
    data
  })
}
/** 短租拉入维修 */
export function maintenanceShortTermBike(data: Bike.MaintenanceShortTermBikeRequestData) {
  return request<Bike.MaintenanceShortTermBikeResponse>({
    url: '/maintenanceShortTermBike',
    method: 'post',
    data
  })
}
/** 获取短租车辆信息 */
export function queryBikeShortTermInfo(data: Bike.BikeInfoRequestData) {
  return request<Bike.BikeInfoResponse>({
    url: '/queryBikeShortTermInfo',
    method: 'post',
    data
  })
}
/** 发送命令刷新位置 */
export function refreshShortTermBikeLocation(data: Bike.refreshShortTermBikeLocationRequestData) {
  return request<Bike.refreshShortTermBikeLocationResponse>({
    url: '/refreshShortTermBikeLocation',
    method: 'post',
    data
  })
}
/** 增加使用中车辆备注 */
export function addOrderRemark(data: Bike.addRemarkRequestData) {
  return request<Bike.addRemarkResponse>({
    url: '/addOrderRemark',
    method: 'post',
    data
  })
}
/** 查看使用中车辆备注 */

export function queryOrderRemark(data: Bike.queryOrderRemarkRequestData) {
  return request<Bike.queryOrderRemarkResponse>({
    url: '/queryOrderRemark',
    method: 'post',
    data
  })
}
/** 查看车辆附近还车点  */
export function queryShortTermRange(data: Bike.queryShortTermRangeRequestData) {
  return request<Bike.queryShortTermRangeResponse>({
    url: '/queryShortTermRange',
    method: 'post',
    data
  })
}
/** 开头盔锁  */
export function openMask(data: Bike.openMaskRequestData) {
  return request<Bike.openMaskResponse>({
    url: '/openMask',
    method: 'post',
    data
  })
}
